package com.jake.rabbit.demo.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"jake.direct.queue.1", "jake.direct.queue.2", "jake.direct.queue.3"})
@Slf4j
public class DirectConsumer {

    @RabbitHandler
    public void process(String msg) {
        log.info(msg);
    }
}
